/**
 * Event package.
 */
package fr.umlv.m2.ig.model.event;

import java.util.EventObject;

import fr.umlv.m2.ig.model.Station;

/**
 * This class defines the events for stations state.
 * 
 * @author Gambouele Bertrand.
 * @author Viravout Alexandre.
 */
@SuppressWarnings("serial")
public class StationEvent extends EventObject {

	/**
	 * The station concerned by the event.
	 */
	private final Station station;

	/**
	 * Creates a new {@code StationEvent}.
	 * 
	 * @param source Source of the event.
	 * @param station The concerned station.
	 */
	public StationEvent(final Object source, final Station station) {
		super(source);
		this.station = station;
	}
	
	/**
	 * Gets the station concerned by the event.
	 * 
	 * @return the station concerned by the event.
	 */
	public Station getStation() {
		return this.station;
	}
}
